<div id="menu">
    
</div>
<div id="userbox">
    <?php 
        if($logged_in)
        {
            echo '<div id="avatar"><img id="avatar" src="'.$avatar.'"></div><div id="username">'.$nickname.'</div>';
        } else {
            echo '<a href="'.$steam_login_link.'"><img src="http://cdn.steamcommunity.com/public/images/signinthroughsteam/sits_small.png"></a>';
        }
    ?>
</div>